<?php foreach($art as $value) { ?>
<tr>
  <td><?php echo $value['id']; ?></td>
  <td><?php echo $value['title']; ?></td>
  <td><?php echo $value['author']; ?></td>
  <td><?php echo $value['create_time']; ?></td>
  <td>
    <?php if($value['status'] ==1){ ?>
      <button type="button" class="btn btn-default" data-status="<?php echo $value['status'] ?>" data-id="<?php echo $value['id']; ?>" onclick = "page.status('/admin/article/status/',this)">
        <span class="glyphicon glyphicon-ok" aria-hidden="true">
        </span>
      </button>
    <?php }else{ ?>
      <button type="button" class="btn btn-default" data-status="<?php echo $value['status'] ?>" data-id="<?php echo $value['id']; ?>" onclick = "page.status('/admin/article/status/',this)">
        <span class="glyphicon glyphicon-off" aria-hidden="true">
        </span>
      </button>
    <?php } ; ?>
  </td>
  <td>
    <div class="btn-group" role="group" aria-label="...">
      <button type="button" class="btn btn-default">
        <a href="/index/article/post?id=<?php echo $value['id']; ?>">
          <span class="glyphicon glyphicon-search" aria-hidden="true">
          </span>
        </a>
      </button>
      <button type="button" class="btn btn-default">
        <a href="edit?id=<?php echo $value['id']; ?>">
          <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
        </a>
      </button>
      <button type="button-remove" class="btn btn-default" onclick ="page.remove(this)" data-value="<?php echo $value['id']; ?>">
        <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
      </button>
    </div>                             
  </td>
</tr>								
<?php } ?>
